package Huihu.src.刷题;

import java.util.Scanner;

public class 查找子串 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        String t=scanner.nextLine();
        for (int i = 0; i < s.length(); i++) {
            for (int j = i+1; j < s.length(); j++) {
                String str=s.substring(i,j);
                if (str.equals(t)){
                    System.out.println(i);
                }
            }
        }
    }
}
